package rpc.conf;

import org.apache.commons.lang3.StringUtils;

/*********
 *
 *
 *@author 197
 *@date 2020/6/18 21:56
 *
 **/


public class RefererConfig {

  private String interfaceName;
  private int timeOut = 3000;
  private String group;
  private String direct;

  public String getInterfaceName() {
    return interfaceName;
  }

  public RefererConfig setInterfaceName(String interfaceName) {
    this.interfaceName = StringUtils.replace(interfaceName, " ", "");
    return this;
  }

  public int getTimeOut() {
    return timeOut;
  }

  public RefererConfig setTimeOut(int timeOut) {
    this.timeOut = timeOut;
    return this;
  }

  public String getGroup() {
    return group;
  }

  public RefererConfig setGroup(String group) {
    this.group = group;
    return this;
  }

  public String getDirect() {
    return direct;
  }

  public RefererConfig setDirect(String direct) {
    this.direct = direct;
    return this;
  }

  @Override
  public String toString() {
    return "RefererConfig{" +
        "interfaceName='" + interfaceName + '\'' +
        ", timeOut=" + timeOut +
        ", group='" + group + '\'' +
        '}';
  }
}
